<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>
<link type="text/css" rel="stylesheet"
	href="static/bootstrap/css/bootstrap.min.css" />
</head>
<body>
	<script type="text/javascript"
		src="static/bootstrap/js/jquery-3.4.1.min.js"></script>
	<script type="text/javascript"
		src="static/bootstrap/js/bootstrap.min.js"></script>
	
	<div class="container">
		<div class="row">
			<div class="col-md-10">
				<form id="frm" action="user" class="form-horizontal" >
					<input type="hidden" name="action" value="update">
					<div class="form-group">
						<label for="userid">用户编号</label> <input type="text"
							class="form-control" name="userid" value="${user.getUid()}"
							readonly="readonly">
					</div>
					<div class="form-group">
						<label for="username">用户名:</label> <input type="text"
							class="form-control" name="username" value="${user.getUname()}">
					</div>
					<div class="form-group">
						<label for="userpass">密码:</label> <input type="password"
							class="form-control" name="userpass" value="${user.getUpass()}">
					</div>
					<div class="form-group">
						<label for="userpass2">重复密码:</label> <input type="password"
							class="form-control" name="userpass2" value="${user.getUpass()}">
					</div>
					<div class="form-group">
						<label for="exampleInputEmail1">邮箱地址:</label> <input type="email"
							class="form-control" name="useremail" value="${user.getUemail()}">
					</div>
					<div class="form-group">
						<label class="control-label" for="usersex">性别：</label><input
							type="radio" class="form-control" name="usersexy" value="男"
							<c:if test="${user.getUgender()=='男'}">checked="checked"</c:if>>男
						<input type="radio" class="form-control" name="usersexy" value="女"
							<c:if test="${user.getUgender()=='女'}">checked="checked"</c:if>>女
					</div>
					<div class="form-group">
						<label for="exampleInputEmail1">状态:</label> <input type="text"
							class="form-control" name="flag" value="${user.getUflag()}">
					</div>
					<div class="form-group">
						<label for="exampleInputEmail1">角色:</label> <input type="text"
							class="form-control" name="role" value="${user.getUrole()}">
					</div>
					<div class="form-group">
						<label for="exampleInputEmail1">激活码:</label> <input type="text"
							class="form-control" name="code" value="${user.getUcode()}">
					</div>
					<div class="form-group">
				<div class="col-sm-10">
					<button type="submit" class="btn btn-primary">确认修改</button>
				</div>
			</div>
			</form>
			</div>	
		</div>
	</div>

</body>
</html>